import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import VeeValidate from "vee-validate";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
// import Icon from 'vue-awesome/components/Icon';
import Icon from "vue-iconfont";
import echarts from "echarts";
Vue.prototype.$echarts = echarts;

Vue.config.productionTip = false;
Vue.use(ElementUI);
/*Vue.component('v-icon', Icon);*/
Vue.use(Icon, [
  // 定义 v-icon 组件以使用 font-class 图标
  {
    tag: "v-icon",
    prefix: "v-icon",
    type: "font"
  },

  // 定义 v-svg-icon 组件以使用 SVG 图标
  {
    tag: "v-svg-icon",
    prefix: "v-icon",
    type: "svg"
  }
]);

new Vue({
  router,
  store,
  VeeValidate,
  components: { App },
  render: h => h(App)
}).$mount("#app");
